package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface CouponMapper extends BaseMapper<Coupon> {
  /**
   * 根据条件查询用户列表 selectCoupons
   * page, status, beginTime, endTime, couponSN
   */
  Page<Map<String, Object>> selectCoupons(@Param("page") Page page, @Param("status") String status,
                                          @Param("beginTime") String beginTime,
                                          @Param("endTime") String endTime,
                                          @Param("condition") String condition);

}
